/**
 * Created by wzq on 14-12-23.
 */

// mid-ware : collect post/put data
exports = module.exports = function(req, res, next) {
	var stringBody = '';
	req.on('data', function(chunk) {
		stringBody += chunk;
	});

	req.on('end', function() {
		req.stringBody = stringBody;
		next();
	});
};
